﻿using System;
using System.Collections.Generic;

namespace RexToy.Cassandra
{
    class CounterColumn<C> : ICounterColumn<C>
    {   
        internal CounterColumn(C name, long value)
        {
            name.ThrowIfNullArgument("name");

            _name = name;
            _value = value;
        }

        private long _value;
        public long Value
        {
            get { return _value; }
        }

        public ColumnType ColumnType
        {
            get { return ColumnType.Counter; }
        }

        private C _name;
        public C Name
        {
            get { return _name; }
        }

        object IColumn<C>.Value
        {
            get { return _value; }
        }
    }
}
